package com.office.supplies.service;

import com.github.pagehelper.PageInfo;
import com.office.supplies.pojo.Employee;

/**
 * @Author admin
 * @Description TODO
 * @Date 2023/12/09/19:56
 */
public interface EmployeeService {

    /**
     * 员工注册
     *
     * @param employee Employee
     */
    void registerEmployee(Employee employee);

    /**
     * 员工登录
     *
     * @param employee Employee
     * @return Employee
     */
    Employee login(Employee employee);

    /**
     * 根据id获取员工信息
     *
     * @param id Long
     * @return Employee
     */
    Employee getEmployeeById(Long id);

    /**
     * 条件分页查询员工信息
     *
     * @param pageNum Integer
     * @param pageSize Integer
     * @param employee Employee
     * @return Page<Employee>
     */
    PageInfo<Employee> getAllEmployees(Integer pageNum, Integer pageSize, Employee employee);

    /**
     * 修改员工
     *
     * @param employee Employee
     */
    void updateEmployee(Employee employee);

    /**
     * 删除员工
     *
     * @param id Long
     */
    void deleteEmpLoyee(Long id);
}
